import request from '../utils/request';
import { remoteAddress } from './ip';

export async function addGrade(params) {
  return request(remoteAddress('/student/grade/add'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function deleteGrade(params) {
  return request(remoteAddress('/student/grade/delete'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function updateGrade(params) {
  return request(remoteAddress('/student/grade/update'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function queryGrade(params) {
  return request(remoteAddress('/student/grade/listall'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
